<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>添加</title>
    <link rel="stylesheet" href="../../bootstrap-3.3.7/css/bootstrap.min.css">
    <script src="../../webstormclass/vue.js"></script>

</head>
<body>
<div class="container">
    <h2 class="text-center" style="color: pink">添加商品</h2>
    <form action="" class="form-horizontal">
        <div class="form-group" >
            <label class="control-label col-sm-2 col-sm-offset-2">名称</label>
            <div class="col-sm-6">
                <input type="text" v-model="user2.proname" class="form-control" id="proname" placeholder="请输入商品名称">
            </div>
        </div>
        <div class="form-group" >
            <label class="control-label col-sm-2 col-sm-offset-2">单价</label>
            <div class="col-sm-6">
                <input type="text" class="form-control" id="proprice" placeholder="请输入商品单价">
            </div>
        </div>
        <div class="form-group" >
            <label class="control-label col-sm-2 col-sm-offset-2">数量</label>
            <div class="col-sm-6">
                <input type="text" class="form-control" id="pronumber" placeholder="请输入商品数量">
            </div>
        </div>
        <div class="form-group text-center" >
           <input type="button" value="添加" class="btn btn-primary">
           <input type="button" value="重置" class="btn btn-primary">
        </div>

    </form>
    <table class="table table-bordered table-hover">
        <caption class="h3 text-center text-info" style="color: pink">商品列表</caption>
        <thead>
        <tr>
            <th class="text-center">产品编号</th>
            <th class="text-center">产品名称</th>
            <th class="text-center">产品单价</th>
            <th class="text-center">产品数量</th>
            <th class="text-center">操   作</th>
        </tr>
        </thead>
        <tbody>
        <tr>
            <td class="text-center"></td>
            <td class="text-center"></td>
            <td class="text-center"></td>
            <td class="text-center"></td>
            <td class="text-center"></td>
        </tr>
        </tbody>
    </table>
</div>
<script src="../jquery.js"></script>
<script src="../../bootstrap-3.3.7/js/bootstrap.min.js"></script>
</body>
<script>
new Vue({
    el:".container",
    data:{
        user1:{},
        user2:[{proname:"111",proprice:"19.8",pronumber:"100"}]
    }
})
</script>
</html>